﻿using MovingChame.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MovingChame.Web.Infrastructure
{
    interface ILocationProvider
    {
        int AddLocation(string name, double longtitude, double latitude, string imagepath, string description);

        bool UpdateLocation(int locationId, Location updatedLocation);

        bool UpdateLocationDescription(int locationId, string imagepath, string description);

        void RemoveLocation(int locationId);

        Location GetLocationById(int locationId);

        IQueryable<Location> SearchLocationInName(String keyword);

        IQueryable<Location> SearchLocationInDescription(String keyword);

        IQueryable<Location> SearchLocation(String keyword);

        IQueryable<Location> GetAllLocations();
    }
}